import { lazy } from 'react'
import {CopyOutlined} from "@ant-design/icons";
import { IMenuRoutes } from './element.tsx'

const File = lazy(() => import('@/views/File/index.tsx'))
const Recently = lazy(() => import('@/views/File/Recently/index.tsx'))
const Image = lazy(() => import('@/views/File/Image/index.tsx'))

const file: IMenuRoutes = {
    path: 'file',
    element: <File />,
    key: '/file',
    label: '文件管理',
    icon: <CopyOutlined />,
    title: '文件管理',
    children: [
        {
            path: 'recently',
            element: <Recently />,
            key: '/file/recently',
            title: '最近',
            label: '最近'
        },
        {
            path: 'image',
            element: <Image />,
            key: '/file/image',
            title: '图片',
            label: '图片'
        }
    ]
}

export default file